var Foo = { template: '<div>foo</div>' }
var Bar = { template: '<div>bar</div>' }
var routes = [
    { path: '/foo', component: Foo },
    { path: '/bar', component: Bar },
    { path: '/main', component:  httpVueLoader('/vue/index/main.vue') }
];
var router = new VueRouter({
    routes // (缩写) 相当于 routes: routes
});